<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app23">
    <li v-for="todo in todos" v-if="todo.isComplete">
        {{ todo.name }}
    </li>
</div>

<script type="text/javascript">
    var vm = new Vue({
        el: '#app23',
        data: {
            todos: [{name:'香蕉',isComplete:true},{name:'苹果',isComplete:false},{name:'梨',isComplete:true}],
        },
    })
</script>
</body>
</html>